<?php/** * Created by PhpStorm. * User: goouc * Date: 2019/9/10 * Time: 14:18 */global $_W,$_GPC;$list = pdo_fetchall("select * from ".tablename($this->t_cardinfo)." where weid = :weid AND status = :status ",array(':weid'=>$_W['uniacid'],':status'=>1));//查询用户是否兑换过/*foreach($list as $k=>$v){    $isexchange = pdo_get($this->t_user_exchange,array('weid'=>$_W['uniacid'],'uid'=>$uid,'cid'=>$v['id']));    if(empty($isexchange)){        $list[$k]['isexchange'] = 2;    }else{        $list[$k]['isexchange'] = 1;        if($isexchange['status'] == 1){            $list[$k]['isuse'] = 1;        }else{            $list[$k]['isuse'] = 2;        }    }}*/return $this->getresult(0,'列表',['list'=>$list]);